<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="../node_modules/@vue/reactivity/dist//reactivity.global.js"></script>
    <script>
        let {reactive,effect} = VueReactivity
        let state = reactive({name:'4xi',age:18})
        effect(()=>{
            app.innerHTML = '我我我'+state.name+','+state.age
        })

        setTimeout(()=>{
            state.age = 20
        },2000)
    </script>
</body>
</html>